package com.chance.cc.crawler.development.command.schedule.baidu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.baidu.realtime.BaiJiaHaoRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.baidu.trace.BaiDuTieBaCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.baidu.trace.BaiJiaHaoCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.baidu.trace.BaiJiaHaoTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.schedule.CommonCrawlerJobTestScheduler;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-06 14:46:43
 * @email okprog@sina.com
 */
public class BaiJiaHaoCrawlerScheduler extends CommonCrawlerJobTestScheduler {
    public static void main(String[] args) {
        commonCrawlerScheduleJob(BaiJiaHaoRealtimeCrawlerSchedulerJob.crawlerScheduler());
        commonCrawlerScheduleJob(BaiJiaHaoTraceCrawlerSchedulerJob.crawlerScheduler());
        commonCrawlerScheduleJob(BaiJiaHaoCommentTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }


    public static void  commonDelCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }
    @Test
    public void delCrawlerJob(){
        commonDelCrawlerScheduleJob(BaiJiaHaoCommentTraceCrawlerSchedulerJob.crawlerScheduler());
    }
}
